﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/List.Master" AutoEventWireup="true" CodeBehind="R016.aspx.cs" Inherits="Honestysoft.Financing.WebUI.Module.Reports.R016" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
     <script language="javascript" type="text/javascript">
         function query() {
             var endDate = document.getElementById("<%=dtpEndDate.ClientID %>").value;
             var startDate = document.getElementById("<%=dtpStartDate.ClientID %>").value;
             if (endDate == "") {
                 alert("请指定结束日期！");
                 return;
             }
             if (startDate != "") {
                 if (startDate > endDate) {
                     alert("开始日期不能大于结束日期，请重新指定！");
                     return;
                 }
                 startDate = '&startDate=' + startDate;
             }
             else {
                 startDate = '&startDate=1900-1-1';
             }
             ifrmInfo.location.href = '<%=System.Configuration.ConfigurationManager.AppSettings["ReportServerURL"] %>/R016' + startDate + '&endDate='+endDate+'&rc:parameters=false';
         }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div region="north" split="true" border="false" style="padding:0px;overflow:hidden;height:30px;font-size:12px">
    开始日期：<asp:TextBox ID="dtpStartDate" runat="server" cssClass="input2" onfocus="setday(this);" Width="100px"></asp:TextBox>(如果不填则表示截止到结束日期)
    &nbsp;&nbsp;结束日期：<asp:TextBox ID="dtpEndDate" runat="server" cssClass="input2" onfocus="setday(this);" Width="100px"></asp:TextBox>
<asp:Button runat="server" ID="btnQuery" Text="查 询" class="btn_normal" OnClientClick="query();return false;"
                onmouseover="this.className='btn_active'" 
                onmouseout="this.className='btn_normal'" />
    
        </div>
	    <div region="center" border="false">
            <iframe id="ifrmInfo" scrolling="yes" frameborder="0"  src="" style="width:100%;height:500px;"></iframe> 
	    </div>
        
        <script language="javascript" type="text/javascript">
            var date = new Date();
            document.getElementById("<%=dtpEndDate.ClientID %>").value = date.getYear() + "-" + (date.getMonth() + 1) + "-" + date.getDate();
            query();
        </script>
</asp:Content>
